const colorList = [
  '#ffbe7d',
  '#86bcb6',
  '#79706e',
  '#59a14f',
  '#b6992d',
  '#8cd17d',
  '#a0cbe8',
  '#f1ce63',
  '#f28e2b',
];
const option1 = {
  xAxis: {
    type: 'category',
    axisLabel: {
      textStyle: {
        color: '#fff',
      },
    },
    data: [
      'Jan',
      'Fab',
      'Mar',
      'Apr',
      'May',
      'Jun',
      'Jul',
      'Aug',
      'Sep',
      'Oct',
      'Nov',
      'Dec',
    ],
  },
  yAxis: {
    type: 'value',
    axisLabel: {
      textStyle: {
        color: '#fff',
      },
    },
  },
  series: [
    {
      itemStyle: {
        normal: {
          //这里是颜色
          color: function (params) {
            return colorList[params.dataIndex % colorList.length];
          },
        },
      },
      data: [
        120,
        {
          value: 200,
        },
        150,
        80,
        70,
        110,
        130,
        18,
        56,
        122,
        78,
        17,
      ],
      type: 'bar',
    },
  ],
};
export default option1